import request from '@/utils/request'
// 仓库管理
export function selectAllDep(data) {
  return request.get('/Depository/selectAllDep', data)
}
export function insertDepository(data) {
  return request.get('/Depository/insertDepository', data)
}
export function deleteDep(data) {
  return request.delete('/Depository/deleteDep', data)
}
export function updateDep(data) {
  return request.post('/Depository/updateDep', data)
}
// 分区管理

export function insertFpartition(data) {
  return request.get('/Depository/insertFpartition', data)
}
export function fpartitionByDepId(data) {
  return request.post('/Depository/fpartitionByDepId', data)
}
export function updateFpartition(data) {
  return request.post('/Depository/updateFpartition', data)
}
export function deleteFpartition(data) {
  return request.delete('/Depository/deleteFpartition', data)
}

//货架管理

export function insertShelves(data) {
  return request.get('/Depository/insertShelves', data)
}
export function deleteShelves(data) {
  return request.delete('/Depository/deleteShelves', data)
}
export function updateShelves(data) {
  return request.get('/Depository/updateShelves', data)
}
export function selectShelvesByFid(data) {
  return request.get('/Depository/selectShelvesByFid', data)
}

// 库位管理
export function insertLocation(data) {
  return request.get('/Depository/insertLocation', data)
}
export function deleteLocation(data) {
  return request.delete('/Depository/deleteLocation', data)
}
export function updateLocation(data) {
  return request.get('/Depository/updateLocation', data)
}
export function selectLocationByOrderId(data) {
  return request.get('/Depository/selectLocationByOrderId', data)
}
export function selectLocationByDid(data) {
  return request.get('/Depository/selectLocationByDid', data)
}
export function selectLocationByFid(data) {
  return request.get('/Depository/selectLocationByFid', data)
}
export function selectLocationBySid(data) {
  return request.get('/Depository/selectLocationBySid', data)
}
